<html> 
<head> 
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> 
<title>栏目管理</title> 
<link href="./public/core/admin/css/base.css" rel="stylesheet" type="text/css" /> 
<script>
function checkSubmit()
{
   if(document.form1.name.value==""){
		  alert("栏目名称不能为空！");
		  document.form1.name.focus();
		  return false;
	 }
	 return true;
}
</script>
</head> 
<body leftmargin='15' topmargin='10' bgcolor="#FFFFFF"> 
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" style="BORDER-COLLAPSE: collapse"> 
  <tr> 
    <td width="100%" height="20" valign="top"> 
    <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
        <tr> 
          <td height="30"><IMG height=14 src="img/book1.gif" width=20> &nbsp;<a href="?do=ask_hospital_main"><u>医院管理</u></a>&gt;&gt;增加医院</td> 
        </tr> 
      </table></td> 
  </tr> 
  <tr> 
    <td width="100%" height="1" background="img/sp_bg.gif"></td> 
  </tr> 
</table> 
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> 
  <tr><td height="10"></td></tr> 
  <tr> 
  <form name="form1" action="" method="post" onSubmit="return checkSubmit();" enctype="multipart/form-data"> 
  <input type="hidden" name="dopost" value="<?php if($action =='update') echo 'save';else echo'add';?>" /> 
  <?php if(empty($id)){?>  <input type="hidden" name="id" value="<?php $id?>" /> <?php }?>
    <td height="95" align="center" bgcolor="#FFFFFF"> 
 
	<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0" style="border-bottom:1px solid #CCCCCC"> 
          <tr> 
            <td colspan="2" bgcolor="#FFFFFF"> 
           <table border="0" cellpadding="0" cellspacing="0"> 
                <tr> 
                  <td width="84" height="24" align="center" background="img/itemnote1.gif">&nbsp;常规选项&nbsp;</td> 
               
                </tr> 
              </table> 
            </td> 
          </tr> 
        </table> 

	    <table width="100%" border="0"  id="needset" cellspacing="0" cellpadding="0"> 
          <tr> 
            <td width="150" class='bline' height="26">医院名称：</td> 
            <td class='bline'> 
            <input name="name" type="text" value="<?php echo $hospital[name]?>" class="iptxt" /> 
             </td> 
          </tr> 
          <tr> 
            <td width="150" class='bline' height="26">状态：</td> 
            <td class='bline'> 
					<INPUT TYPE="checkbox" NAME="recommend" <?php if($hospital[recommend]) echo 'checked';?> value='1'>推荐
             </td> 
          </tr> 
          <tr> 
            <td height="26" class='bline'>医院地址： </td> 
            <td class='bline'> 
            <input name="addr" type="text" value="<?php echo $hospital[addr]?>" class="iptxt" /> 
            </td> 
          </tr>  
		   <tr> 
            <td height="26" class='bline'>医院电话： </td> 
            <td class='bline'> 
            <input name="phone" type="text" value="<?php echo $hospital[phone]?>" class="iptxt" /> 
            </td> 
          </tr>  
		   <tr> 
            <td height="26" class='bline'>诊断时间： </td> 
            <td class='bline'> 
            <input name="time" type="text" value="<?php echo $hospital[time]?>" class="iptxt" /> 
            </td> 
          </tr>  
		   <tr> 
            <td height="26" class='bline'>所属地区： </td> 
            <td class='bline'>
<SELECT NAME="yid">
{dede:datalist}
	<?php if($fields['evalue']>500 && $fields['evalue']%500 != 0)  $fields['ename'] = " └─".$fields['ename']; ?>
	<OPTION VALUE="{dede:field.id /}"  <?php if($hospital[yid] == $fields['id']) echo 'selected';?>>{dede:field.ename /}</OPTION>	
{/dede:datalist}
</SELECT>
            </td> 
          </tr> 
		            <tr> 
            <td height="26" class='bline'>咨询链接： </td> 
            <td class='bline'> 
            <input name="link" type="text" value="<?php echo $hospital[link]?>" class="iptxt"  size='60'/> 
            </td> 
          </tr> 
		  		   <tr> 
            <td height="26" class='bline'>医院相片： </td> 
            <td class='bline'> 
            <input type="file" name="photo" class="iptxt"/><?php if($hospital){?><img src='<?php echo $hospital[photo]?>'/><?php }?>
            </td> 
          </tr> 
		  	<tr> 
            <td height="26" class='bline'>seo： </td> 
            <td class='bline'> 
           <INPUT TYPE="text" NAME="seo" value="<?php echo $hospital['seo']?>" size='80'>
            </td> 
          </tr>
		  	<tr> 
            <td height="26" class='bline'>关键字： </td> 
            <td class='bline'> 
           <INPUT TYPE="text" NAME="keyword" value="<?php echo $hospital['keyword']?>" size='80'>
            </td> 
          </tr>
		  	<tr> 
            <td height="26" class='bline'>描述： </td> 
            <td class='bline'> 
           <INPUT TYPE="text" NAME="keyword_description" value="<?php echo $hospital['keyword_description']?>" size='80'>
            </td> 
          </tr>
		  	<tr> 
            <td height="26" class='bline'>摘要： </td> 
            <td class='bline'> 
           <INPUT TYPE="text" NAME="digest" value="<?php echo $hospital['digest']?>" size='80'>
            </td> 
          </tr>
		  	<tr> 
            <td height="26" class='bline'>简介： </td> 
            <td class='bline'> 
			    <?php
	            GetEditor("intro",$hospital['intro'],"300","Default","print","false");
	            ?>
            </td> 
          </tr>
        </table>
          <table width="98%" border="0" cellspacing="0" cellpadding="0"> 
		  <tr> 
            <td width="1%" height="50"></td> 
            <td width="99%" valign="bottom"> 
<input name="imageField" type="image" src="img/button_ok.gif" width="60" height="22" border="0" class="np" /> 
&nbsp;&nbsp;&nbsp;
            <a href="?do=catalog_main"><img src="img/button_back.gif" width="60" height="22" border="0" /></a> 
			</td> 
          </tr> 
        </table></td> 
	  </form> 
  </tr> 
</table> 
</body> 
</html> 